package com.mge.humitureproj.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 温湿度异常记录表(HumitureExRecord)表实体类
 *
 * @author makejava
 * @since 2025-05-22 11:42:03
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
public class HumitureExRecord extends Model<HumitureExRecord> {
    //温湿度异常记录id
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    //区域id和Modbus站地址
    private String regionalIdAddress;
    // 温度值
    private BigDecimal recordTemperatureValue;
    // 湿度值
    private BigDecimal recordHumidityValue;
    //异常结束时间
    private Date recordEndDate;
    //异常记录时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date recordDate;
}

